bin/zkClient.sh

help

ls /

# 查看当前节点详细数据
ls -s /

# 创建永久节点+不带序号
create /sanguo "diaochan"

# 获取节点值+详细数据
get -s /sanguo

# 创建永久节点+带序号
create -s /sanguo "zhuge"
create -s /sanguo "zhuge" # 会产生序号为2的节点

# 创建临时节点+不带序号
create -e /sanguo/wuguo "wuguo"

# 创建临时节点+带序号
create -s -e /sanguo/wuguo "wuguo"

# 修改节点值
set /sanguo/wuguo "wuguo1"

# 删除节点
delete /sanguo/wuguo

# 查看节点状态 不显示数据
stat /sanguo

quit